﻿namespace Jim.K3Cloud;

/// <summary>
/// 获取产品版本
/// </summary>
[Sdk("Kingdee.BOS.ServiceFacade.ServicesStub.DataCenterService.GetDataCenterVersionInfo", "获取产品版本")]
public class K3CloudGetDataCenterVersionInfoRequest : ISdkRequest<K3CloudGetDataCenterVersionInfoResponse>
{
    public string ServerUrl { get; set; }

    public void Validate()
    {
    }
}


public class K3CloudGetDataCenterVersionInfoResponse : SdkResponse<K3CloudGetDataCenterVersionInfoData>
{
}
public class K3CloudGetDataCenterVersionInfoData
{

    /// <summary>当前版本号</summary>
    public string Version { get; set; }

    /// <summary>主版本信息</summary>
    public List<MajorVerInfo> Majors { get; set; }

    /// <summary>当前补丁</summary>
    public string CurPatchNum { get; set; }

    /// <summary>最近一次打补丁时间</summary>
    public DateTime CurPatchDate { get; set; }
}

/// <summary>主版本信息</summary>
public class MajorVerInfo
{
    /// <summary>当前主版本号(1,2,3,5,6,7)</summary>
    public int MajorVer { get; set; }

    /// <summary>主版本升级时间</summary>
    public DateTime MajorVerDate { get; set; }

    /// <summary>补丁号</summary>
    public string PatchNum { get; set; }

    /// <summary>补丁时间</summary>
    public DateTime PatchDate { get; set; }

}
